﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations
{
    public interface IHtmlTableCollection :
           IEnumerable<IHtmlTable>, IEnumerator<IHtmlTable>
    {
        IHtmlTable this[int index] { get;}

        int Count { get;}

        /// <summary>
        /// 根据路径搜索表
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        IHtmlTable SearchTable(string path);

        /// <summary>
        /// 根据路径搜索单元格
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        IHtmlCell SearchCell(string path);

        /// <summary>
        /// 根据路径搜索行
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        IHtmlRow SearchRow(string path);

        /// <summary>
        /// 序列化
        /// </summary>
        /// <returns></returns>
        string Serialize();


    }
}
